<!DOCTYPE html>
<html>
<head>
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

	<meta charset="utf-8">
	<title></title>
	<script src="../js/jquery.js"></script>
	<link href="../style/default.min.css" rel="stylesheet">
	<link rel="stylesheet" href="../style/style.css">
	<script src="../js/highlight.min.js"></script>
		<script>hljs.initHighlightingOnLoad();</script>
		<script src="../js/initTemp.js"></script>
	 
</head>
<body>
	<div class="qcanvas_lay">
		
		<canvas id="qcanvas"></canvas>
	</div>
	<div class="code_lay">
		<pre><code class="js">var qcanvas = new Qcanvas({
		id: 'qcanvas',
	    width: 300,
	    height: 200,
	});
var text = qcanvas.text({
	start:[100,100],
	color:'blue',
	fontSize:'20px',
	text:'Qcanvas\nText',
	lineHeight:'20px',
	drag:'vertical',
	degree:290,
	// textAlign:'left',
	textBaseline:'top',
	mouseup:function(e,pos){
		console.log(e)
		console.log(pos);
		// qcanvas.destroy();
	},
	mousedown:function(e,position){
		console.log(e);
		console.log(position)
	},

})		

var textfps = qcanvas.text({
	start:[20,20],
	text:function(){ return qcanvas.currFps},
	color:'blue',
	fontSize:'20px',
	dragRange:[[50,0],[100,100]]
	
})	

		</code>
	</pre>
	</pre>
</div>

</body>
<script src='Qcanvas-v2.0.js'></script>
<script>
	var qcanvas = new Qcanvas({
		id: 'qcanvas',
	    width: 300,
	    height: 200,
	});
var text = qcanvas.text({
	start:[100,100],
	color:'blue',
	fontSize:'20px',
	text:'Qcanvas\nText',
	lineHeight:'20px',
	drag:'vertical',
	degree:290,
	// textAlign:'left',
	textBaseline:'top',
	mouseup:function(e,pos){
		console.log(e)
		console.log(pos);
		// qcanvas.destroy();
	},
	mousedown:function(e,position){
		console.log(e);
		console.log(position)
	},

})		

var textfps = qcanvas.text({
	start:[20,20],
	text:function(){ return qcanvas.currFps},
	color:'blue',
	fontSize:'20px',
	dragRange:[[50,0],[100,100]]
	
})	



</script>

</html>